#include "netstatlistmodel.h"

NetStatListModel::NetStatListModel(QObject *parent) : ListModel( new NetStatItemModel, parent )
{
}

void NetStatListModel::append( QString &ns, QString &pic,  QString &sd, QString &ld, QString &pp, QString &pn, QString &pid, QString &la, QString &lp, QString &fa, QString &fp ) {
    this->appendRow( new NetStatItemModel(ns, pic, sd, ld, pp, pn, pid, la, lp, fa, fp, this) );
}

void NetStatListModel::append( NetStatItemModel *item ) {
    this->appendRow( item );
}

void NetStatListModel::remove( int index ) {
    this->removeRow( index );
}

int NetStatListModel::count() {
    return this->rowCount();
}

void NetStatListModel::clearList()
{
    this->clear();
}
